package com.ardan1.shared;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class Person {

	private Address address;
	
	@Size(min=2, max=256, message="Wrong size")
	@NotNull
	private String name;

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
